<template>
	<div>
		<button @click="test()">按钮</button>
		<hr />
		<!-- <div>Game类</div>
		<json-viewer :value="game" :expand-depth='1' copyable></json-viewer>
		<hr/> -->
		<!-- <div>牌面1:{{pokerList.pokerList1.length}}</div>
		<div id="">
			<span v-for="(item,index) in pokerList.pokerList1">{{item.text}},</span>
		</div> -->
		<!-- <hr/> -->
		<div>牌面2:{{pokerList.pokerList2.length}}</div>
		<div id="">
			<span v-for="(item,index) in pokerList.pokerList2">{{item.text}},</span>
		</div>
		<div>Ai类</div>
		<json-viewer :value="ai" :expand-depth='1' copyable></json-viewer>
		<!-- <json-viewer :value="jsonData" :expand-depth=5 copyable boxed sort></json-viewer> -->
	</div>

</template>

<script>
	import Game from "../doudizhu/Game";
	import AI from "../doudizhu/AI";
	import PokerList from "../assets/js/PokerList";
	export default {
		name: "Test",
		data() {
			return {
				// game: new Game(),
				ai: new AI(),
				pokerList:new PokerList()
			}
		},
		created() {
		},
		methods: {
			test() {
				//模拟牌面：3345566789 10 10 JJQQKKA2
				// this.ai.getClassifyObj(this.pokerList.pokerList1);
				this.ai.getClassifyObj(this.pokerList.pokerList2);
			}
		}
	}
</script>
<style>
</style>
